package javaLianxi50;

public class lianxi18 {
    public static void main(String[] args) {
        char[] teamB = {'x', 'y', 'z'};

        for (char a : teamB) {
            for (char b : teamB) {
                for (char c : teamB) {
                    if (a != 'x' && c != 'x' && c != 'z' && a != b && a != c && b != c) {
                        System.out.println("a vs " + a + ", b vs " + b + ", c vs " + c);
                    }
                }
            }
        }
    }
}
